<div id="content_set">

	<?php if($this->event['id'] and !$this->event['visible']) { ?>
	
		<div class="information">Cet article a été supprimé, il ne sera par conséquent pas visible quelque soit son status.</div>
		
	<?php } ?>
	
	
	<form 	action="<?php echo $this->url(array('module' => 'backend', 'controller' => 'agenda', 'action' => 'prc-set', 'id' => $this->event['id']), null, true); ?>"
			method="post"
			id="set_form">
		
		<input type="hidden" id="redirection" name="redirection" value="<?php echo $this->url(array('module' => 'backend', 'controller' => 'manage', 'action' => 'agenda'), null, true); ?>" />
		
		<label for="title">Titre :</label>
		<input type="text" id="title" name="title" value="<?php echo $this->event['title']; ?>" class="required" />
		<br />
		
		<label for="start_d">Date :</label>
		<input type="text" id="start_d" name="start_d" value="<?php echo $this->event['start_d']; ?>" class="required" /> à 
		
		<select id="start_h" name="start_h">
			<?php for($i = 0; $i < 24; $i++) {
				if($i < 10) {
					$i = '0'.$i;
				} ?>
				<option value="<?php echo $i; ?>"<?php echo ($this->event['start_h'] == $i) ? ' selected="selected"' : ''; ?>"><?php echo $i; ?></option>
			<?php } ?>
		</select>:
		<select id="start_m" name="start_m">
			<?php for($i = 0; $i < 60; $i+=5) {
				if($i < 10) {
					$i = '0'.$i;
				} ?>
				<option value="<?php echo $i; ?>"<?php echo ($this->event['start_m'] == $i) ? ' selected="selected"' : ''; ?>"><?php echo $i; ?></option>
			<?php } ?>
		</select>
		<br />
		
		<label for="end_d">Fin :</label>
		<input type="text" id="end_d" name="end_d" value="<?php echo $this->event['end_d']; ?>" /> à 
		
		<select id="end_h" name="end_h">
			<?php for($i = 0; $i < 23; $i++) {
				if($i < 10) {
					$i = '0'.$i;
				} ?>
				<option value="<?php echo $i; ?>"<?php echo ($this->event['end_h'] == $i) ? ' selected="selected"' : ''; ?>"><?php echo $i; ?></option>
			<?php } ?>
		</select>:
		<select id="end_m" name="end_m">
			<?php for($i = 0; $i < 60; $i+=5) {
				if($i < 10) {
					$i = '0'.$i;
				} ?>
				<option value="<?php echo $i; ?>"<?php echo ($this->event['end_m'] == $i) ? ' selected="selected"' : ''; ?>"><?php echo $i; ?></option>
			<?php } ?>
		</select>
		<br />
		
		<label for="location">Lieu :</label>
		<input type="text" id="location" name="location" value="<?php echo $this->event['location']; ?>" />
		<br />
		
		<label for="event_content">Description :</label>
		<br />
		<textarea id="event_content" name="content" class="required"><?php echo $this->event['content']; ?></textarea>
		<br />
		
		<input type="submit" name="set_send" value="Enregistrer" />
	</form>	
	
	<div id="set_message" class="hidden"></div>
	
</div>
